#ifndef ROBOTPUBI_H
#define ROBOTPUBI_H

#include "RobotDef.h"
#include <QtCore>


class TmRobotNoty : public QThread{
    Q_OBJECT
public:
    TmRobotNoty();
    void run();
    void sendNotify(std::string strType, std::string strMsg);
private:
    Ice::CommunicatorPtr m_pIcComm;
    Robot::PubPrx m_pubNotifyPrx;
};

class RobotPubI : public Robot::Pub
{
public:
    RobotPubI();

    // Pub interface
public:
    void Notify(const std::string &strType, const std::string &strMsg, const Ice::Current &);
};

#endif // ROBOTPUBI_H
